You are here

function path_metatags_load_by_name in Path metatags 7

Load path metatags by name.

Parameters

$name: Path metatags's name.

Return value

object Object with path metatags.

3 calls to path_metatags_load_by_name()
path_metatags_delete in ./path_metatags.module
Delete path metatag.
path_metatags_import_form_submit in path_metatags_ui/path_metatags_ui.admin.inc
Submit callback for path metatags import form.
path_metatags_ui_cache_load in path_metatags_ui/path_metatags_ui.module
Load path_metatags object for UI editing.
3 string references to 'path_metatags_load_by_name'
path_metatags_i18n_i18n_object_info in path_metatags_i18n/path_metatags_i18n.module
Implements hook_i18n_object_info().
path_metatags_schema in ./path_metatags.install
Implements hook_schema().
_path_metatags_ui_form_step_basic_settings in path_metatags_ui/path_metatags_ui.module
FIRST STEP. Provide form with basic settings.

File

./path_metatags.module, line 343
Provide core functions for path metatags module.

Code

function path_metatags_load_by_name($name) {
  ctools_include('export');
  $result = ctools_export_load_object('path_metatags', 'names', array(
    $name,
  ));
  if (!empty($result[$name])) {

    // Merge metatags data with parent for more flattening structure.
    $path_metatags = path_metatags_load_prepare($result[$name]);
  }
  return isset($path_metatags) ? $path_metatags : FALSE;
}