You are here

function block_edit_node_link_options in Block edit 6

3 calls to block_edit_node_link_options()
block_edit_admin_settings in ./block_edit.admin.inc
block_edit_preprocess_node in ./block_edit.module
Preprocess function to add the node edit links to nodes by concatenating with the content variable.
block_edit_update_6100 in ./block_edit.install
Upgrade scripts for 6.x-1.11 version.
4 string references to 'block_edit_node_link_options'
block_edit_admin_settings in ./block_edit.admin.inc
block_edit_preprocess_node in ./block_edit.module
Preprocess function to add the node edit links to nodes by concatenating with the content variable.
block_edit_uninstall in ./block_edit.install
Implements hook_uninstall.
block_edit_update_6100 in ./block_edit.install
Upgrade scripts for 6.x-1.11 version.

File

./block_edit.module, line 345
Adds edit links to blocks and nodes to make administration more intuitive.

Code

function block_edit_node_link_options() {
  $options = array(
    'view',
    'edit',
    'delete',
  );
  if (module_exists('clone')) {
    $options[] = 'clone';
  }
  if (module_exists('devel')) {
    $options[] = 'devel';
  }
  if (module_exists('content')) {
    $options[] = 'cck';
  }
  return array_combine($options, $options);
}