You are here

function linkit_profile_load in Linkit 7.2

Same name and namespace in other branches
  1. 7.3 linkit.module \linkit_profile_load()

Load a single Linkit profile.

2 calls to linkit_profile_load()
linkit_profiles_reorder_submit in plugins/export_ui/linkit_profiles.inc
Save function for the reorder form.
linkit_profile_exists in ./linkit.module
Determines if a profile with a given name exists.
1 string reference to 'linkit_profile_load'
linkit_schema in ./linkit.install
Implements hook_schema().

File

./linkit.module, line 861
Main file for linkit module.

Code

function linkit_profile_load($name) {
  $cache =& drupal_static('__FUNCTION__', array());
  if (!isset($cache[$name])) {
    ctools_include('export');
    $result = ctools_export_load_object('linkit_profiles', 'names', array(
      $name,
    ));
    if (isset($result[$name])) {
      $cache[$name] = $result[$name];
    }
    else {
      return FALSE;
    }
  }
  return $cache[$name];
}