returnt('Allows the creation of custom blocks through the user interface.');
case'admin/structure/custom-blocks':
$output='<p>'.t('This page lists user-created blocks. These blocks are derived from block types. A block type can consist of different fields and display settings. From the block types tab you can manage these fields as well as create new block types.').'</p>';
return$output;
case'admin/structure/custom-blocks/types':
$output='<p>'.t('This page lists block types. A block type can consist of different fields and display settings. From here you can manage these fields as well as create new block types.').'</p>';
return$output;
}
}
/**
* Implements hook_menu_local_tasks().
*/
...
...
@@ -25,6 +44,19 @@ function custom_block_menu_local_tasks(&$data, $router_item, $root_path) {
@@ -101,7 +101,7 @@ public function save(array $form, array &$form_state) {
watchdog('custom_block','Custom block type %label has been added.',array('%label'=>$block_type->label()),WATCHDOG_NOTICE,l(t('Edit'),$uri['path'].'/edit'));