be verbose about what type of element (block, layout, webpage) is beeing installed
This commit is contained in:
parent
5e87bd8843
commit
5641d81f03
@ -173,8 +173,9 @@ function bb_parse_app($match) {
|
|||||||
|
|
||||||
function bb_parse_element($match) {
|
function bb_parse_element($match) {
|
||||||
$j = json_decode(base64url_decode($match[1]),true);
|
$j = json_decode(base64url_decode($match[1]),true);
|
||||||
|
print_r($j);
|
||||||
if ($j) {
|
if ($j) {
|
||||||
$o = EOL . '<a href="#" onclick="importElement(\'' . $match[1] . '\'); return false;" >' . t('Install design element: ') . $j['pagetitle'] . '</a>' . EOL;
|
$o = EOL . '<a href="#" onclick="importElement(\'' . $match[1] . '\'); return false;" >' . t('Install ' . $j['type'] . ' element: ') . $j['pagetitle'] . '</a>' . EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
Reference in New Issue
Block a user