You are here

function linkit_profile_load in Linkit 7.3

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

Load a single Linkit profile.

Parameters

$name: A string with the name of the profile to load.

Return value

A LinkitProfile object or FALSE if no profile is found.

6 calls to linkit_profile_load()
LinkitProfileUICRUDTestCase::testLoadNonExistingProfile in test/linkit_profile.test
Load a profile that doesn't exists.
LinkitProfileUICRUDTestCase::testLoadProfile in test/linkit_profile.test
Load a profile that exists.
LinkitTestCase::createProfile in test/linkit.test
Helper function: Create a Linkit profile.
LinkitTestCase::updateProfile in test/linkit.test
Helper function: Update a Linkit profile.
linkit_dashboard_form in ./linkit.module
Create the dashboard page.

... See full list

1 string reference to 'linkit_profile_load'
linkit_schema in ./linkit.install
Implements hook_schema().

File

./linkit.module, line 123
Main file for Linkit module.

Code

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