Revision b5ff8a25
Added by Andreas Kohlbecker over 7 years ago
modules/cdm_dataportal/cdm_dataportal.install | ||
---|---|---|
87 | 87 |
} |
88 | 88 |
} |
89 | 89 |
|
90 |
if(module_exists('extlinks')){ |
|
91 |
$extlinks_permissions = array( |
|
92 |
'access extlinks content', |
|
93 |
'administer extlinks', |
|
94 |
); |
|
95 |
user_role_grant_permissions($role->rid, $extlinks_permissions); |
|
96 |
$tasks_performed[] = 'permissions for extlinks'; |
|
97 |
} |
|
98 |
|
|
99 | 90 |
foreach (filter_formats() as $key=>$format){ |
100 | 91 |
if($key == 'full_html' || $format->format == "Full HTML"){ |
101 | 92 |
$formats_permissions = array( |
... | ... | |
406 | 397 |
function cdm_dataportal_update_7400() { |
407 | 398 |
// additional permission for the anonymous user authenticated user roles |
408 | 399 |
$additional_default_permissions = array( |
409 |
'access cdm content', |
|
410 |
'access extlinks content' |
|
400 |
'access cdm content' |
|
411 | 401 |
); |
412 | 402 |
user_role_grant_permissions(1, $additional_default_permissions); // anonymous user |
413 | 403 |
user_role_grant_permissions(2, $additional_default_permissions); // authenticated user |
modules/cdm_dataportal/ext_links/ext_links.module | ||
---|---|---|
319 | 319 |
return system_settings_form($form); |
320 | 320 |
} // function ext_links_admin() |
321 | 321 |
|
322 |
/** |
|
323 |
* @todo Please document this function. |
|
324 |
* @see http://drupal.org/node/1354 |
|
325 |
*/ |
|
326 |
function ext_links_permission() { |
|
327 |
|
|
328 |
return array( |
|
329 |
'access extlinks content' => array( |
|
330 |
'title' => t('access extlinks content'), |
|
331 |
'description' => t("TODO Add a description for 'access extlinks content'"), |
|
332 |
), |
|
333 |
'administer extlinks' => array( |
|
334 |
'title' => t('administer extlinks'), |
|
335 |
'description' => t("TODO Add a description for 'administer extlinks'"), |
|
336 |
), |
|
337 |
); |
|
338 |
} /* function ext_links_permission() */ |
|
339 | 322 |
|
340 | 323 |
/** |
341 | 324 |
* Implements hook_menu(). |
modules/cdm_dataportal/profile/CDM_Portal/CDM_Portal.install | ||
---|---|---|
180 | 180 |
'access content', |
181 | 181 |
'access cdm content', |
182 | 182 |
'access content overview', |
183 |
'access extlinks content', |
|
184 | 183 |
'access site in maintenance mode', |
185 | 184 |
'administer blocks', |
186 | 185 |
'administer cdm_dataportal', |
187 | 186 |
'administer content types', |
188 |
'administer extlinks', |
|
189 | 187 |
'administer menu', |
190 | 188 |
'administer nodes', |
191 | 189 |
'administer site configuration', |
... | ... | |
224 | 222 |
|
225 | 223 |
// additional permission for the anonymous user authenticated user roles |
226 | 224 |
$additional_default_permissions = array( |
227 |
'access cdm content', |
|
228 |
'access extlinks content' |
|
225 |
'access cdm content' |
|
229 | 226 |
); |
230 | 227 |
user_role_grant_permissions(1, $additional_default_permissions); // anonymous user |
231 | 228 |
user_role_grant_permissions(2, $additional_default_permissions); // authenticated user |
modules/cdm_dataportal/translations/cdm_dataportal.es.po | ||
---|---|---|
1961 | 1961 |
msgid "Enable sorted list with headings" |
1962 | 1962 |
msgstr "" |
1963 | 1963 |
|
1964 |
#: ext_links/ext_links.module:330 |
|
1965 |
msgid "access extlinks content" |
|
1966 |
msgstr "" |
|
1967 |
|
|
1968 |
#: ext_links/ext_links.module:331 |
|
1969 |
msgid "TODO Add a description for 'access extlinks content'" |
|
1970 |
msgstr "" |
|
1971 |
|
|
1972 |
#: ext_links/ext_links.module:334 |
|
1973 |
msgid "administer extlinks" |
|
1974 |
msgstr "" |
|
1975 |
|
|
1976 |
#: ext_links/ext_links.module:335 |
|
1977 |
msgid "TODO Add a description for 'administer extlinks'" |
|
1978 |
msgstr "" |
|
1979 |
|
|
1980 | 1964 |
#: ext_links/ext_links.module:384 |
1981 | 1965 |
msgid "External Taxon Links" |
1982 | 1966 |
msgstr "" |
Also available in: Unified diff
removing unsed permissions defined in extlinks module