function taxonomy_menu_block_get_config in Taxonomy menu block 7
Returns the configuration for the requested block delta.
Parameters
string $delta: The delta that uniquely identifies the block in the block system. If not specified, the default configuration will be returned.
Return value
array An associated array of configuration options.
5 calls to taxonomy_menu_block_get_config()
- taxonomy_menu_block_block_view in ./
taxonomy_menu_block.module - Implements hook_block_view().
- taxonomy_menu_block_get_name in ./
taxonomy_menu_block.module - Function to get block name.
- taxonomy_menu_block_update_7100 in ./
taxonomy_menu_block.install - Make old blocks compatible with newly added configuration options.
- taxonomy_menu_block_update_7101 in ./
taxonomy_menu_block.install - Make old blocks compatible with new node options.
- _taxonomy_menu_block_form_options in ./
taxonomy_menu_block.admin.inc - Expand normal Block add/edit form.
File
- ./
taxonomy_menu_block.module, line 329 - Taxonomy Menu Block module allows you to make menu blocks out of your taxonomies in a very performant way.
Code
function taxonomy_menu_block_get_config($delta = NULL) {
// Initialize.
$config = array(
'delta' => $delta,
'admin_title' => '',
'vid' => 0,
'parent' => 0,
'parent_fixed' => 0,
'parent_dynamic' => 1,
'depth' => 0,
'home_link' => 0,
'nodes' => 0,
'nodes_aggregation' => 0,
'hide_empty' => 0,
'ctype' => array(),
);
// Get the block configuration options.
if ($delta) {
$config = variable_get("taxonomy_menu_block_{$delta}", array());
}
return $config;
}