security updates
have to check views and entityreference for custom patches
This commit is contained in:
@@ -121,11 +121,16 @@ function template_preprocess_context_block_browser(&$vars) {
|
||||
* Preprocessor for theme('context_block_browser_item').
|
||||
*/
|
||||
function template_preprocess_context_block_browser_item(&$vars) {
|
||||
static $added = array();
|
||||
$vars['bid'] = $vars['block']->bid;
|
||||
$vars['info'] = check_plain($vars['block']->info);
|
||||
if (empty($added[$vars['bid']])) {
|
||||
drupal_add_js(array('contextBlockEditor' => array('block_tokens' => array($vars['bid'] => drupal_get_token($vars['bid'])))), 'setting');
|
||||
$added[$vars['bid']] = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme wrapper for editable blocks.
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function theme_context_block_edit_wrap($vars) {
|
||||
$block = $vars['element']['#block'];
|
||||
return $vars['element']['#children'] . "<a id='context-block-{$block->module}-{$block->delta}' class='context-block editable edit-{$block->context}'></a>";
|
||||
}
|
||||
|
Reference in New Issue
Block a user