You are here

function cacheflush_ui_cacheflush_ui_operations in CacheFlush 7.3

Implements hook_cacheflush_ui_operations().

File

modules/cacheflush_ui/cacheflush_ui.module, line 155
Cacheflush User Interface.

Code

function cacheflush_ui_cacheflush_ui_operations() {
  $operations = array(
    'enable' => array(
      'label' => t('Enable selected content'),
      'callback' => 'cacheflush_ui_mass_update',
      'callback arguments' => array(
        'updates' => array(
          'status' => 1,
        ),
      ),
    ),
    'disable' => array(
      'label' => t('Disable selected content'),
      'callback' => 'cacheflush_ui_mass_update',
      'callback arguments' => array(
        'updates' => array(
          'status' => 0,
        ),
      ),
    ),
    'add_menu_entry' => array(
      'label' => t('Add menu entry'),
      'callback' => 'cacheflush_ui_mass_update',
      'callback arguments' => array(
        'updates' => array(
          'menu' => 1,
        ),
      ),
    ),
    'remove_menu_entry' => array(
      'label' => t('Remove menu entry'),
      'callback' => 'cacheflush_ui_mass_update',
      'callback arguments' => array(
        'updates' => array(
          'menu' => 0,
        ),
      ),
    ),
    'delete' => array(
      'label' => t('Delete selected content'),
      'callback' => NULL,
    ),
  );
  return $operations;
}