You are here

ccl_local_actions.install in Custom Contextual Links 8

Same filename and directory in other branches
  1. 7 ccl_local_actions/ccl_local_actions.install

Provides install, upgrade and un-install functions for ccl_blocks.

File

ccl_local_actions/ccl_local_actions.install
View source
<?php

/**
 * @file
 * Provides install, upgrade and un-install functions for ccl_blocks.
 */

/**
 * Implements hook_uninstall().
 *
 * Remove links created by this submodule.
 */
function ccl_local_actions_uninstall() {
  db_delete('ccl')
    ->condition('type', 'local_actions')
    ->execute();
}

/**
 * Implements hook_update_N().
 * Renames type of links from 'local_action' to 'local_actions'.
 */
function ccl_local_actions_update_7100() {
  db_update('ccl')
    ->fields(array(
    'type' => 'local_actions',
  ))
    ->condition('type', 'local_action')
    ->execute();
}

Functions

Namesort descending Description
ccl_local_actions_uninstall Implements hook_uninstall().
ccl_local_actions_update_7100 Implements hook_update_N(). Renames type of links from 'local_action' to 'local_actions'.