[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/ctools/includes/ -> content.inc (summary)

(no description)

File Size: 757 lines (23 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 20 functions

  ctools_ctools_plugin_content_types()
  ctools_content_process()
  ctools_get_content_type()
  ctools_get_content_types()
  ctools_content_get_subtypes()
  ctools_content_get_subtype()
  ctools_content_prepare_subtype()
  ctools_content_render()
  ctools_content_editable()
  ctools_content_admin_title()
  ctools_content_admin_icon()
  ctools_content_get_defaults()
  ctools_content_admin_info()
  ctools_content_configure_form_defaults()
  ctools_content_configure_form_defaults_submit()
  ctools_content_form()
  _ctools_content_create_form_info()
  ctools_content_get_available_types()
  ctools_content_get_all_types()
  ctools_content_select_context()

Functions
Functions that are not part of a class:

ctools_ctools_plugin_content_types()   X-Ref
Implementation of hook_ctools_plugin_*.

Give information to CTools about the content types plugin.

ctools_content_process(&$plugin, $info)   X-Ref
Provide defaults for a content type.

Currently we check for automatically named callbacks to make life a little
easier on the developer.

ctools_get_content_type($content_type)   X-Ref
Fetch metadata on a specific content_type plugin.

param: $content type
return:

ctools_get_content_types()   X-Ref
Fetch metadata for all content_type plugins.

return:

ctools_content_get_subtypes($type)   X-Ref
Get all of the individual subtypes provided by a given content type. This
would be all of the blocks for the block type, or all of the views for
the view type.

param: $type
return:

ctools_content_get_subtype($type, $subtype_id)   X-Ref
Given a content type and a subtype id, return the information about that
content subtype.

param: $type
param: $subtype_id
return:

ctools_content_prepare_subtype(&$subtype, $plugin)   X-Ref
Ensure minimal required settings on a content subtype exist.


ctools_content_render($type, $subtype, $conf, $keywords = array()   X-Ref
Get the content from a given content type.

param: $type
param: $subtype
param: $conf
param: $keywords
param: $args
param: $context
param: $incoming_content
return:

ctools_content_editable($type, $subtype, $conf)   X-Ref
Determine if a content type can be edited or not.

Some content types simply have their content and no options. This function
lets a UI determine if it should display an edit link or not.

ctools_content_admin_title($type, $subtype, $conf, $context = NULL)   X-Ref
Get the administrative title from a given content type.

param: $type
param: $subtype
param: $conf
param: $context

ctools_content_admin_icon($subtype)   X-Ref
Get the proper icon path to use, falling back to default icons if no icon exists.

$subtype
The loaded subtype info.

ctools_content_get_defaults($plugin, $subtype)   X-Ref
Set up the default $conf for a new instance of a content type.


ctools_content_admin_info($type, $subtype, $conf, $context = NULL)   X-Ref
Get the administrative title from a given content type.

param: $type
param: $subtype
param: $conf
param: $context

ctools_content_configure_form_defaults(&$form, &$form_state)   X-Ref
Add the default FAPI elements to the content type configuration form


ctools_content_configure_form_defaults_submit(&$form, &$form_state)   X-Ref
Submit handler to store context/title override info.


ctools_content_form($op, $form_info, &$form_state, $plugin, $subtype_name, $subtype, &$conf, $step = NULL)   X-Ref
Get the config form.

The $form_info and $form_state need to be preconfigured with data you'll need
such as whether or not you're using ajax, or the modal. $form_info will need
your next/submit callbacks so that you can cache your data appropriately.

return:

_ctools_content_create_form_info(&$form_info, $info, $plugin, $subtype, $op)   X-Ref
No description

ctools_content_get_available_types($contexts = NULL, $has_content = FALSE, $allowed_types = NULL, $default_types = NULL)   X-Ref
Get an array of all available content types that can be fed into the
display editor for the add content list.

param: $context
param: $has_content
param: $allowed_types
param: $default_types

ctools_content_get_all_types()   X-Ref
Get an array of all content types that can be fed into the
display editor for the add content list, regardless of
availability.


ctools_content_select_context($plugin, $subtype, $conf, $contexts)   X-Ref
Select the context to be used for a piece of content, based upon config.

param: $plugin
param: $subtype
param: $conf
param: $contexts
return:



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7