<?phpfunctioncontext_install(){}functioncontext_uninstall(){drupal_uninstall_schema('context');variable_del('context_ui_show_empty_regions');variable_del('context_reaction_block_disable_core');variable_del('context_reaction_block_all_regions');}functioncontext_schema(){$schema=array();$schema['context']=array('description'=> Storage for export

Initial value:

> array(
      'key' => 'name',
      'identifier' => 'context',
      'default hook' => 'context_default_contexts',  // Function hook name.
      'status' => 'context_status',
      'api' => array(
        'owner' => 'context',
        'api' => 'context',  // Base name for api include files.
        'minimum_version' => 3,
        'current_version' => 3,
      ),
      'export callback' => 'context_export',
    ),
    'fields' => array(
      'name' => array(
        'description' => 'The primary identifier for a context.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'description' => array(
        'description' => 'Description for this context.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'tag' => array(
        'description' => 'Tag for this context.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'conditions' => array(
        'description' => 'Serialized storage of all context condition settings.',
        'type' => 'text',
        'serialize' => TRUE,
      ),
      'reactions' => array(
        'description' => 'Serialized storage of all context reaction settings.',
        'type' => 'text',
        'serialize' => TRUE,
      ),
      'condition_mode' => array(
        'description' => 'Condition mode for this context.',
        'type' => 'int',
        'default' => 0,
      ),
    ),
    'primary key' => array('name'),
  )

Definition at line 27 of file context.install.

Referenced by context_load(), context_export_ui::edit_finish_validate(), context_export_ui::list_build_row(), context_export_ui::list_css(), and context_export_ui::list_render().


Generated on Tue Jun 18 02:24:17 2013 for Context by  doxygen 1.4.7