fc.registry.inc in Field Complete 7
Field Complete - Provides field-based completeness for any entity - registry.
File
fc.registry.incView source
<?php
/**
* @file
* Field Complete - Provides field-based completeness for any entity - registry.
*/
/**
* Implements hook_ctools_plugin_type() to inform CTools about the layout plugin.
*/
function _fc_ctools_plugin_type() {
return array(
'fields' => array(
'cache' => TRUE,
'defaults' => array(
'field form' => array(),
'cardinality check' => 'fc_default_field_cardinality',
'can be empty' => FALSE,
'zero can be empty' => FALSE,
),
),
);
}
/**
* Implements hook_menu().
*/
function _fc_menu() {
return array(
'admin/config/content/fc' => array(
'title' => 'Field Complete',
'description' => t('Settings for the field complete module.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fc_settings',
),
'access arguments' => array(
'administer fc settings',
),
'file' => 'fc.admin.inc',
'type' => MENU_NORMAL_ITEM,
),
'admin/config/content/fc/settings' => array(
'title' => 'Settings',
'description' => t('Settings for the field complete module.'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
),
'admin/config/content/fc/rebuild' => array(
'title' => 'Rebuild',
'description' => t('Rebuild the field completeness table.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fc_rebuild',
),
'access arguments' => array(
'administer fc settings',
),
'file' => 'fc.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 5,
),
);
}
/**
* Implements hook_permission().
*/
function _fc_permission() {
return array(
'administer fc settings' => array(
'title' => t('Administer Field Complete settings'),
),
);
}
/**
* Implements hook_theme().
*/
function _fc_theme() {
return array(
'form_complete_marker' => array(
'render element' => 'element',
'file' => 'fc.themes.inc',
),
);
}
Functions
Name![]() |
Description |
---|---|
_fc_ctools_plugin_type | Implements hook_ctools_plugin_type() to inform CTools about the layout plugin. |
_fc_menu | Implements hook_menu(). |
_fc_permission | Implements hook_permission(). |
_fc_theme | Implements hook_theme(). |