You are here

function css_injector_update_7201 in CSS Injector 7.2

Change the title field to name in css_injector_rule table

File

./css_injector.install, line 155
css_injector.install

Code

function css_injector_update_7201(&$sandbox) {

  // Quick sanity check to ensure the column exists.
  if (db_field_exists('css_injector_rule', 'title')) {
    db_change_field('css_injector_rule', 'title', 'name', array(
      'type' => 'varchar',
      'length' => '255',
      'description' => 'Unique ID for rules. Used to identify them programmatically.',
    ));
  }
}