function _classified_get in Classified Ads 7.3
Same name and namespace in other branches
- 6.3 classified.module \_classified_get()
A simplified alternative to variable_get().
Prepends the name of the module and a dash, and automatically obtains the default value if needed, as expected for D8.
Parameters
string $name: The name of the variable to return.
Return value
mixed The value of the variable.
33 calls to _classified_get()
- ClassifiedTestAbstractTest::createNode in tests/
classified_test_abstract.test - Build a node from settings, providing classified-specific defaults.
- ClassifiedTestNotificationsTest::test1441396 in tests/
classified_test_notifications.test - Issue #1441396.
- ClassifiedTestTestBasicTest::test0123396And0143680 in tests/
classified_test_basic.test - Bug 123396: Unchecking Publish doesn't prevent nodes from being published.
- ClassifiedTestTestBasicTest::test1287674 in tests/
classified_test_basic.test - Bug 1287674.
- ClassifiedTestTestBasicTest::test1432606 in tests/
classified_test_basic.test - Bug 1432606: Ads can be viewed when not published.
File
- ./
classified.module, line 188 - A pure D7 classified ads module inspired by the ed_classified module.
Code
function _classified_get($name) {
$vars = _classified_get_vars();
$name = 'classified-' . $name;
return variable_get($name, $vars[$name]);
}