@@ 1704-1708 (lines=5) @@ | ||
1701 | $paths = array_map('strval', $paths ? $paths : array()); |
|
1702 | ||
1703 | // Add the field paths. |
|
1704 | foreach ($paths as $path) |
|
1705 | { |
|
1706 | $path = JPATH_ROOT . '/' . ltrim($path, '/\\'); |
|
1707 | FormHelper::addFieldPath($path); |
|
1708 | } |
|
1709 | ||
1710 | // Get any addformpath attributes from the form definition. |
|
1711 | $paths = $this->xml->xpath('//*[@addformpath]/@addformpath'); |
|
@@ 1715-1719 (lines=5) @@ | ||
1712 | $paths = array_map('strval', $paths ? $paths : array()); |
|
1713 | ||
1714 | // Add the form paths. |
|
1715 | foreach ($paths as $path) |
|
1716 | { |
|
1717 | $path = JPATH_ROOT . '/' . ltrim($path, '/\\'); |
|
1718 | FormHelper::addFormPath($path); |
|
1719 | } |
|
1720 | ||
1721 | // Get any addrulepath attributes from the form definition. |
|
1722 | $paths = $this->xml->xpath('//*[@addrulepath]/@addrulepath'); |
|
@@ 1726-1730 (lines=5) @@ | ||
1723 | $paths = array_map('strval', $paths ? $paths : array()); |
|
1724 | ||
1725 | // Add the rule paths. |
|
1726 | foreach ($paths as $path) |
|
1727 | { |
|
1728 | $path = JPATH_ROOT . '/' . ltrim($path, '/\\'); |
|
1729 | FormHelper::addRulePath($path); |
|
1730 | } |
|
1731 | ||
1732 | return true; |
|
1733 | } |